//
//  QuickaboutLongdistancetoseeadoctorTableViewCell.m
//  WE
//
//  Created by 要帅气的生活 on 15/11/21.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "QuickaboutLongdistancetoseeadoctorTableViewCell.h"
#import "BaseView.h"
@implementation QuickaboutLongdistancetoseeadoctorTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _base = [BaseView new];
        [self.contentView addSubview:_base];
        _label = [UILabel new];
        [_base  addSubview:_label];
        
        _right = [UILabel new];
        [_base addSubview:_right];
        
        _img = [UIImageView new];
        [_base  addSubview:_img];
    }
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _base.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.width);
    _label.frame = CGRectMake(10, self.frame.size.height/3, self.frame.size.width/2 +50, self.frame.size.height/3);
    _label.textAlignment = 0;
    _label.font = [UIFont systemFontOfSize:14];
    _img.frame = CGRectMake(self.frame.size.width-30, self.frame.size.height/3, 20, self.frame.size.height/3);
    _img.image = [UIImage imageNamed:@"you"];
    _right.frame = CGRectMake(self.frame.size.width/2+60, self.frame.size.height/3, self.frame.size.width/2-94,  self.frame.size.height/3);
    _right.textAlignment  = 2;
    _right.font = [UIFont systemFontOfSize:14];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
